//
//  FindPasswordViewController.m
//  Double
//
//  Created by dllo on 15/5/23.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "FindPasswordViewController.h"

@interface FindPasswordViewController ()

@end

@implementation FindPasswordViewController

- (void)dealloc
{
    [super dealloc];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    self.navigationItem.title = @"找回密码";
    [self createView];

    // Do any additional setup after loading the view.
}
#pragma mark 找回密码界面
- (void)createView
{
    UIButton * DetermineButton = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 50, 30)];
    [DetermineButton setTitle:@"确定" forState:UIControlStateNormal];
    [DetermineButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [DetermineButton addTarget:self action:@selector(DetermineAction:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem * DetermineButtonItem = [[UIBarButtonItem alloc]initWithCustomView:DetermineButton];
    self.navigationItem.rightBarButtonItem = DetermineButtonItem;
    [DetermineButton release];
    
    UITextField * NumField = [[UITextField alloc]initWithFrame:CGRectMake(20, 30, self.view.frame.size.width - 40, 40)];
    [NumField setPlaceholder:@"请输入手机号码"];
    [NumField setBorderStyle:UITextBorderStyleRoundedRect];
    [self.view addSubview:NumField];
    [NumField release];
    
    UITextField * VerifyField = [[UITextField alloc]initWithFrame:CGRectMake(20, 80, self.view.frame.size.width - 150, 40)];
    [VerifyField setPlaceholder:@"请输入验证码"];
    [VerifyField setBorderStyle:UITextBorderStyleRoundedRect];
    [self.view addSubview:VerifyField];
    [VerifyField release];
    
    UIButton * GetVerifyButton = [[UIButton alloc]initWithFrame:CGRectMake(VerifyField.frame.size.width + 30, 80, 100, 40)];
    [GetVerifyButton setTitle:@"获取验证码" forState:UIControlStateNormal];
    [GetVerifyButton setBackgroundColor:[UIColor lightGrayColor]];
    [GetVerifyButton addTarget:self action:@selector(GetAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:GetVerifyButton];
    [GetVerifyButton release];
    
    UITextField * PasswordField = [[UITextField alloc]initWithFrame:CGRectMake(20, 130, self.view.frame.size.width - 40, 40)];
    [PasswordField setPlaceholder:@"请输入密码"];
    [PasswordField setBorderStyle:UITextBorderStyleRoundedRect];
    [self.view addSubview:PasswordField];

}
- (void)DetermineAction:(id)sender
{
    
}
- (void)GetAction:(id)sender
{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
